import 'package:json_annotation/json_annotation.dart';

part 'type_and_tag_icon.g.dart';

@JsonSerializable()
class TypeAndTagIcon {
  final double width;
  final String imageUrl;

  TypeAndTagIcon({
    required this.width,
    required this.imageUrl,
  });

  factory TypeAndTagIcon.fromJson(Map<String, dynamic> json) =>
      _$TypeAndTagIconFromJson(json);

  Map<String, dynamic> toJson() => _$TypeAndTagIconToJson(this);
}